package com.mark.mall.admin.platform.myMethod.MyMapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author admin
 */
public interface MyBaseMapper<T> extends BaseMapper<T> {
    /**
     * 删除所有
     * @return
     */
    int deleteAll();

    /**
     * 更新对象
     * @param t
     * @return
     */
    int alwaysUpdateSomeColumnById(@Param(Constants.ENTITY) T t);

    /**
     * 查找全部
     * @return
     */
    List<T> findAll();
}
